package com.wxq.product.feign;

import com.wxq.common.to.SkuHasStockTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * @author Jim
 * @date 1:09 下午 2022/4/1
 * @description yomall-feign远程调用
 * @email:huwmz04153277@126.com
 */
@FeignClient("yomall-ware")
public interface WareFeignService {
    /**
     * 查询sku是否有库存
     * @param skuIds
     * @return
     */
    @PostMapping("/ware/waresku/hasstock")
    List<SkuHasStockTO> getSkuHasStock(List<Long> skuIds);
}
